<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('提交')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<style>
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-settlement-submitUser">
        <div class="form-group">
            <label class="col-sm-3 control-label">审定人：</label>
            <div class="col-sm-8">
                <input type="hidden" name="id" th:value="${id}"/>
                <select name="approvalBy" class="form-control">
                    <option value="">请选择</option>
                    <option th:each="submitUser : ${submitUser}" th:text="${submitUser.userName}"
                            th:value="${submitUser.userId}"></option>
                </select>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<script>
    var prefix = ctx + "costSettlement";

    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-settlement-submitUser").serializeArray();
            $.operate.save(prefix + "/submitUser", data);
        }
    }

</script>
</body>
</html>